package Demo01;

public class coolboy {
    private String name;
    private int age;
    public int height;

    public coolboy(){
        System.out.println("无参构造");
    }

    public coolboy(String name,int age,int height){
        this.name=name;
        this.age=age;
        this.height=height;
    }

    public void setname(String name){

        this.name=name;
    }

    public String getName(){
        return name;
    }

    public void singing(){
        System.out.println(this.name+"在唱歌！！！");
    }

    public void func(){
        coolboy c1=new coolboy();
    }

}


